package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysFaultFeedbackEn;

import java.util.List;

/**
 * English Fault Feedback Business Object sys_fault_feedback_en
 *
 * @author system
 * @date 2025-10-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysFaultFeedbackEn.class, reverseConvertGenerate = false)
public class SysFaultFeedbackEnBo extends BaseEntity {

    /**
     * Excavator Model
     */
    @NotBlank(message = "Excavator model cannot be empty", groups = { AddGroup.class })
    private String excavatorModel;

    /**
     * Fault Part
     */
    @NotBlank(message = "Fault part cannot be empty", groups = { AddGroup.class })
    private String faultPart;

    /**
     * Fault Symptom
     */
    @NotBlank(message = "Fault symptom cannot be empty", groups = { AddGroup.class })
    private String faultSymptom;

    /**
     * Detailed Fault Description
     */
    @NotBlank(message = "Fault detail cannot be empty", groups = { AddGroup.class })
    private String faultDetail;

    /**
     * Remark
     */
    private String remark;

    /**
     * Image URL List (filled in by frontend after upload)
     */
    @Size(max = 3, message = "Maximum 3 images can be uploaded")
    private List<String> imageUrls;

}

